



<?php 

    function course_availability($course_selected) {
        
    $file = file_get_contents("course_list.txt") ;
    $file = strtolower($file);
    if(strpos($file,$course_selected)){
        $course_available =1;
        
    }else{
        $course_available =0;
      
    }
        return $course_available;
    }

?>